package cn.wolfcode.crm.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Getter@Setter
public class Account {
    //挂单编号
    private Long id;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date vdate;

    //关联商品的信息
    private BigDecimal num; //购买数量
    private BigDecimal costAmmount;
    private BigDecimal costPrice;
    private BigDecimal saleAmmount;
    private BigDecimal salePrice; //特殊: 保存的是会员专属的价格
    //关联销售人员
    private Employee saleman;
    //关联会员信息
    private Member member; //会员信息,卡号
    //关联商品
    private Product product;
}